#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from dragon.locatordetail import LocatorDetail
from locators.loginpage import LoginPage

class PersionalPage(LoginPage):
        shareButton=LocatorDetail('svg.share','分享按钮')
        expireTime=LocatorDetail('div.end-time','到期时间')
        # 续费管理
        renewButton=LocatorDetail('续费管理','续费管理按钮','text')
        buyButton=LocatorDetail('div.buy-btn>div','立即购买按钮')
        payButton=LocatorDetail('div.footer-buy-btn','立即支付按钮')
        lowPrice = LocatorDetail('span.fs24', '最低价格')
        price=LocatorDetail('div.strategy-price','价格')
        selectedMonthOption=LocatorDetail('div.buy-item.cp.active','已选中月数选项')
        monthOption=LocatorDetail('div.buy-item.cp','月数选项')
        month=LocatorDetail('div.month','月数')
        estimateExpireTime=LocatorDetail('div.date.date-num','预计到期时间')
        lklPrice=LocatorDetail('span.amt','拉卡拉价格')

        # 我的自选
        subscribeButton=LocatorDetail('我的自选','我的自选按钮','text')
        # 我的订单
        orderButton=LocatorDetail('我的订单','我的订单按钮','text')
        orderBlock=LocatorDetail('li.infinite-list-item','订单块')
        copyButton=LocatorDetail('span.copy-btn','复制按钮')
        tacticName=LocatorDetail('span.order-name','战法名称')
        copyAlert=LocatorDetail('div.el-message.el-message--success','复制订单号提示')
        # 修改手机号
        modifyPhoneButton=LocatorDetail('更改/绑定手机号','修改手机号按钮','text')
        bindedPhone=LocatorDetail('div.phone-box>div','已绑定的手机号')

        # 联系客服
        serviceButton=LocatorDetail('联系客服','联系客服按钮','text')
        # 意见反馈
        feedbackButton=LocatorDetail('意见反馈','意见反馈按钮','text')
        textInput=LocatorDetail('textarea.el-textarea__inner','问题描述输入框')
        uploadInput=LocatorDetail('input.el-upload__input','文件上传按钮')
        onlineServiceButton=LocatorDetail('在线客服','在线客服按钮','text')
        feedbackSubmitButton=LocatorDetail('div.footer-btn.cp','提交按钮')
        feedbackSubmitAlert=LocatorDetail('div.el-message','提交提示')
        uploadedImg=LocatorDetail('div.img-item','已上传的图片')
        # 退出登录
        quitButton=LocatorDetail('退出登录','退出登录按钮','text')
        quitCancelButton=LocatorDetail('div.cancel','取消按钮')
        quitConfirmButton=LocatorDetail('div.confirm>div:nth-child(2)','确认退出按钮')